import request from '@/utils/request'

// 查询记录列表
export function listChatrecord(query) {
  return request({
    url: '/system/chatrecord/list',
    method: 'get',
    params: query
  })
}

// 查询记录详细
export function getChatrecord(recordId) {
  return request({
    url: '/system/chatrecord/' + recordId,
    method: 'get'
  })
}

// 新增记录
export function addChatrecord(data) {
  return request({
    url: '/system/chatrecord',
    method: 'post',
    data: data
  })
}

// 修改记录
export function updateChatrecord(data) {
  return request({
    url: '/system/chatrecord',
    method: 'put',
    data: data
  })
}

// 删除记录
export function delChatrecord(recordId) {
  return request({
    url: '/system/chatrecord/' + recordId,
    method: 'delete'
  })
}

